import { MailMessageResp } from '../model/mail_message';
import { ModelBase } from '../model/mode_base';
import { SoapXmlReader } from '../xml/soap_xml'
import { ResponseBase } from './response_base'

export class SendMailResponse extends ResponseBase<MailMessageResp> {

  public constructor() {
    super();
    this.data = new MailMessageResp();
  }

  public toObject(soapXmlReader: SoapXmlReader): ModelBase {
    throw new Error('Method not implemented.');
  }

  protected readHeaderFromXml(soapXmlReader: SoapXmlReader) {
    // decode header
  }

  protected readBodyFromXml(soapXmlReader: SoapXmlReader) {
    // decode body
    // if (!soapXmlReader) {
    //   throw { name: 'BusinessError', code: 'DECODED_XML_ERROR', message: 'decoded xml failed.'} as ExchangeError;
    // }

  }
}